﻿@model IEnumerable<FCNS.ERP.Models.DefineClass.DefineJxc>

@{
    ViewBag.Title = ViewData["Flag"] ;
    Layout = "~/Views/Jxc/_Layout.cshtml";
}

<h2>@ViewBag.Title</h2>
 

<p>
    @{
        var f = (int)ViewData["Flag"];
    }
    <a class="newObjA" href="/Jxc/StoreOrderNew?flag=@f">新增-@ViewData["Flag"]</a>
</p> 
<table class="table">
    <tr>

        <th>
            @Html.DisplayNameFor(model => model.Name)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.OrderNO)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DateTimeStart)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CorSName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.StoreName)
        </th>
        <th></th>
    </tr>

    @foreach (var item in Model)
    {
        <tr>

            <td>
                @Html.DisplayFor(modelItem => item.Name)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.OrderNO)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.DateTimeStart)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.CorSName)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.StoreName)
            </td>
            <td>
                @Html.ActionLink("审核", "StoreOrderShenHe", new { orderNO = item.OrderNO ,flag=f })
            </td>
        </tr>
    }

</table>
